/*
 * Powered By xTOOLs
 * Dev by tao.li8@pactera.com
 * Copyright ©2009-2018 pactera.com All rights reserved.
 * Generated at 2020-7-6 18:45:10
 */

package com.pactera.jep.service.yapin.coll.model;

import com.pactera.jep.web.entity.Result;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Digits;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.*;
import java.math.BigDecimal;

import com.pactera.jep.commons.DateUtils;
import com.pactera.jep.entity.PO;

/**
 * 保险信息实体类
 * @Author YourName
 * @Date 2020-7-6 18:45:10
 */
@ApiModel(value = "InsurenceInfo" , description = "保险信息")
@Entity
@Table(name = "bs_col_insurenceinfo")
public class InsurenceInfo implements PO {

    @ApiModelProperty("保险信息id ")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Length(max = 36, message = "保险信息id 长度最多36位")
    @Column(name = "INSURENCEINFO_ID")
    private String insurenceinfoId;

    @ApiModelProperty("押品编号")
    @Length(max = 40, message = "押品编号长度最多40位")
    @Column(name = "CLT_NO")
    private String cltNo;

    @ApiModelProperty("保单号")
    @Length(max = 40, message = "保单号长度最多40位")
    @Column(name = "INSUR_NO")
    private String insurNo;

    @ApiModelProperty("保险公司注册号")
    @Length(max = 40, message = "保险公司注册号长度最多40位")
    @Column(name = "INSUR_CD")
    private String insurCd;

    @ApiModelProperty("保险公司名称")
    @Length(max = 120, message = "保险公司名称长度最多120位")
    @Column(name = "INSUR_NM")
    private String insurNm;

    @ApiModelProperty("受益人名称")
    @Length(max = 100, message = "受益人名称长度最多100位")
    @Column(name = "BENEFICIARY")
    private String beneficiary;

    @ApiModelProperty("保险种类")
    @Length(max = 20, message = "保险种类长度最多20位")
    @Column(name = "INSUR_TP_CD")
    private String insurTpCd;

    @ApiModelProperty("保险金额")
    @Digits(integer = 18, fraction = 2, message = "保险金额不能超过20位")
    @Column(name = "INSUR_AMT")
    private BigDecimal insurAmt;

    @ApiModelProperty("投保费用")
    @Digits(integer = 18, fraction = 2, message = "投保费用不能超过20位")
    @Column(name = "INSUR_COST_AMT")
    private BigDecimal insurCostAmt;

    @ApiModelProperty("保单签订日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Column(name = "SIGN_DT")
    private Date signDt;

    @ApiModelProperty("投保费用率")
    @Digits(integer = 8, fraction = 8, message = "投保费用率不能超过16位")
    @Column(name = "COST_RT")
    private BigDecimal costRt;

    @ApiModelProperty("保险生效日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Column(name = "BEGIN_DT")
    private Date beginDt;

    @ApiModelProperty("保险截止日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Column(name = "END_DT")
    private Date endDt;

    @ApiModelProperty("保险备注信息")
    @Length(max = 65535, message = "保险备注信息长度最多65,535位")
    @Column(name = "INSUR_RMK")
    private String insurRmk;

    @ApiModelProperty("操作机构编码")
    @Length(max = 40, message = "操作机构编码长度最多40位")
    @Column(name = "OPR_ORG_NO")
    private String oprOrgNo;

    @ApiModelProperty("操作员代码")
    @Length(max = 40, message = "操作员代码长度最多40位")
    @Column(name = "OPR_NO")
    private String oprNo;

    @ApiModelProperty("操作日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "OPR_DT")
    private Date oprDt;

    @ApiModelProperty("押品Id")
    @Length(max = 36, message = "押品Id长度最多36位")
    @Column(name = "CLT_ID")
    private String cltId;

    @ApiModelProperty("租户")
    @Column(name = "TENANT_ID_")
    private String tenantId;

    @ApiModelProperty("创建人ID")
    @Column(name = "CREATED_BY_ID_")
    private String createdById;

    @ApiModelProperty("创建人名称")
    @Length(max = 64, message = "创建人名称长度最多64位")
    @Column(name = "CREATED_BY_NAME_")
    private String createdByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "CREATED_TIME_")
    private Date createdTime;

    @ApiModelProperty("逻辑删除标记")
    @Length(max = 1, message = "逻辑删除标记长度最多1位")
    @Column(name = "DELFLAG_")
    private String delflag;

    @ApiModelProperty("显示序号")
    @Digits(integer = 10, fraction = 0, message = "显示序号不能超过10位")
    @Column(name = "DISPLAY_ORDER_")
    private Integer displayOrder;

    @ApiModelProperty("修改人ID")
    @Column(name = "MODIFIED_BY_ID_")
    private String modifiedById;

    @ApiModelProperty("修改人名称")
    @Length(max = 64, message = "修改人名称长度最多64位")
    @Column(name = "MODIFIED_BY_NAME_")
    private String modifiedByName;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Column(name = "MODIFIED_TIME_")
    private Date modifiedTime;

    @ApiModelProperty("版本")
    @Digits(integer = 10, fraction = 0, message = "版本不能超过10位")
    @Column(name = "VERSION_")
    private Integer version;

    public String getInsurenceinfoId(){
        return insurenceinfoId;
    }

    public void setInsurenceinfoId(String insurenceinfoId){
        this.insurenceinfoId = insurenceinfoId;
    }
    public String getCltNo(){
        return cltNo;
    }

    public void setCltNo(String cltNo){
        this.cltNo = cltNo;
    }
    public String getInsurNo(){
        return insurNo;
    }

    public void setInsurNo(String insurNo){
        this.insurNo = insurNo;
    }
    public String getInsurCd(){
        return insurCd;
    }

    public void setInsurCd(String insurCd){
        this.insurCd = insurCd;
    }
    public String getInsurNm(){
        return insurNm;
    }

    public void setInsurNm(String insurNm){
        this.insurNm = insurNm;
    }
    public String getBeneficiary(){
        return beneficiary;
    }

    public void setBeneficiary(String beneficiary){
        this.beneficiary = beneficiary;
    }
    public String getInsurTpCd(){
        return insurTpCd;
    }

    public void setInsurTpCd(String insurTpCd){
        this.insurTpCd = insurTpCd;
    }
    public BigDecimal getInsurAmt(){
        return insurAmt;
    }

    public void setInsurAmt(BigDecimal insurAmt){
        this.insurAmt = insurAmt;
    }
    public BigDecimal getInsurCostAmt(){
        return insurCostAmt;
    }

    public void setInsurCostAmt(BigDecimal insurCostAmt){
        this.insurCostAmt = insurCostAmt;
    }
    public Date getSignDt(){
        return signDt;
    }

    public void setSignDt(Date signDt){
        this.signDt = signDt;
    }
    public BigDecimal getCostRt(){
        return costRt;
    }

    public void setCostRt(BigDecimal costRt){
        this.costRt = costRt;
    }
    public Date getBeginDt(){
        return beginDt;
    }

    public void setBeginDt(Date beginDt){
        this.beginDt = beginDt;
    }
    public Date getEndDt(){
        return endDt;
    }

    public void setEndDt(Date endDt){
        this.endDt = endDt;
    }
    public String getInsurRmk(){
        return insurRmk;
    }

    public void setInsurRmk(String insurRmk){
        this.insurRmk = insurRmk;
    }
    public String getOprOrgNo(){
        return oprOrgNo;
    }

    public void setOprOrgNo(String oprOrgNo){
        this.oprOrgNo = oprOrgNo;
    }
    public String getOprNo(){
        return oprNo;
    }

    public void setOprNo(String oprNo){
        this.oprNo = oprNo;
    }
    public Date getOprDt(){
        return oprDt;
    }

    public void setOprDt(Date oprDt){
        this.oprDt = oprDt;
    }
    public String getCltId(){
        return cltId;
    }

    public void setCltId(String cltId) {
        this.cltId = cltId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public String getCreatedById() {
        return createdById;
    }

    public void setCreatedById(String createdById) {
        this.createdById = createdById;
    }

    public String getCreatedByName() {
        return createdByName;
    }

    public void setDisplayOrder(Integer displayOrder) {
        this.displayOrder = displayOrder;
    }

    public String getModifiedById() {
        return modifiedById;
    }

    public void setModifiedById(String modifiedById) {
        this.modifiedById = modifiedById;
    }

    public String getModifiedByName() {
        return modifiedByName;
    }

    public void setCreatedByName(String createdByName){
        this.createdByName = createdByName;
    }
    public Date getCreatedTime(){
        return createdTime;
    }

    public void setCreatedTime(Date createdTime){
        this.createdTime = createdTime;
    }
    public String getDelflag(){
        return delflag;
    }

    public void setDelflag(String delflag){
        this.delflag = delflag;
    }
    public Integer getDisplayOrder(){
        return displayOrder;
    }


    public void setModifiedByName(String modifiedByName){
        this.modifiedByName = modifiedByName;
    }
    public Date getModifiedTime(){
        return modifiedTime;
    }

    public void setModifiedTime(Date modifiedTime){
        this.modifiedTime = modifiedTime;
    }
    public Integer getVersion(){
        return version;
    }

    public void setVersion(Integer version){
        this.version = version;
    }
}

